package com.hbgjq.security.config;

import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;

/**
 * @author gjq
 */
@Component
public class MyWebSecurity {
        public boolean check(Authentication authentication, HttpServletRequest request) {
            String test = request.getParameter("test");
            if (test != null){
                return true;
            }
            return false;
        }
}